home *** CD-ROM | disk | FTP | other *** search
/ Clickx 13 / Clickx 13.iso / mac / Utilities / Dialog Studio Lite 1.1.1 / Manual < prev    next >
Encoding:
Text File  |  2001-03-14  |  13.5 KB  |  243 lines  |  [ttro/ttxt]

  1. Dialog Studio Manual  for Dialog Studio version 1.1
  2. http://macscripter.net/dialog_studio.html
  3.  
  4. 14th March 2001
  5.  
  6. For purposes of this section, the term “item” refers to any of the dialog items such as buttons, checkboxes, etc. and “window” or “main window” refers to the main dialog window in Dialog Studio which provides the basis of your dialog. 
  7.  
  8. ------------------------------------
  9.  
  10. Contents
  11.  
  12. Menu items
  13. The Tools palette
  14. The Property palette
  15. Preferences
  16. Creating a Dialog
  17. Saving a dialog
  18. Exporting an AppleScript
  19. Other Notes
  20.  
  21. ------------------------------------
  22.  
  23. Menu items
  24.  
  25. Most menu items are accompanied by a command key shortcut.
  26.  
  27. File
  28.  
  29. • New: create a new empty window. If a window exists, and contains one or more 
  30.    items, a save prompt is raised. 
  31. • Open: asks the user to open a Dialog Studio file. 
  32. • Close: close the current window. If the window contains one or more items, a save prompt is raised. 
  33. • Save as: save the dialog as a native Dialog Studio file. 
  34. • Export: exports scripts using any of 4 options found in the preferences dialog (see below).
  35. • Quit: quits, but if a window exists, and contains one or more items, a save prompt is raised.
  36.  
  37. Edit
  38.  
  39. • Undo: undoes the last move performed by dragging an item in the window.
  40. • Paste: enables pasting into edit fields on the “Properties” palette and in 
  41.    the “Preview” palette (see preferences, below)
  42. • Preferences - opens the preferences dialog.
  43.  
  44. Item
  45.  
  46. • Select next - selects the next item in the main window.
  47. • Duplicate - dupliates the currently selected item. By default this is 16 pixel across and 16 pixels down. 
  48.    If the option key is pressed while selecting this menu item, a dialog is raised asking for 
  49.    duplicate offsets. These offsets are remembered during the current session of Dialog Studio.
  50. • Move again - moves an item in the main window to the same relative offsets as the last item 
  51.    that was moved (by dragging).
  52. • Bring to front - brings an item to the front. Useful for bring items in front of boxes.
  53. • Send to Back - sends an item to the back.
  54. • Nudge - selecting any of the nudge keys nudges the currently selected item in the direction 
  55.    indicated by one pixel. Holding down the option key increases the nudge factor to 10 pixels.
  56. • Clear - deletes the current item.
  57.  
  58. Window
  59.  
  60. • About MacScripter.net - raises a dialog containing information about MacScripter.net website.
  61. • Show/Hide Tools - opens the tools palette if it is closed.
  62. • Show/Hide Properties - opens the properties palette if it is closed.
  63. • Show/Hide Guides - toggles the guides on and off 
  64. • Show/Hide Tool Tips -toggles the tool tips on and off.
  65.  
  66. ------------------------------------
  67.  
  68. The Tools palette
  69.  
  70. The tools palette is divided into three sections:
  71.  
  72. Dialog item buttons - The dialog item buttons are, in order from left to right and downwards are:
  73. To include these items in your dialog, drag then from the tools palette onto the main window.
  74.  
  75. • Push button
  76. • Icon
  77. • Radio button
  78. • Checkbox
  79. • Static text
  80. • Editable text field
  81. • List box
  82. • Popup menu
  83. • Box
  84. • Line (actually a 1 pixel deep box).
  85.  
  86. Nudge buttons - The nudge buttons move or increase the size of the currently selected item in the indicated direction. By holding down a combination of option and command keys, different tasks occur:
  87.  
  88. • Command key - the item increases in size by 1 pixel
  89. • Option key - the item is moved by 10 pixels. 
  90. • Option and Command keys - the item increases in size by 10 pixels
  91.  
  92. Other editing buttons - These are, in order from left to right and downwards are:
  93.  
  94. • Move - which performs the same task as the “Move” menu item.
  95. • Duplicate - which performs the same task as the “Duplicate” menu item 
  96.    (holding option while pressing this button raises the Duplicate dialog).
  97. • Open - which performs the same task as the “Open” menu item.
  98. • Delete - which performs the same task as the “Clear” menu item.
  99. • Save - which performs the same task as the “Save” menu item.
  100. • Export button - which performs the same task as the “Export” menu item.
  101.  
  102. ------------------------------------
  103.  
  104. The Property palette
  105.  
  106. The property palette is divided into two sections:
  107.  
  108. Item - The contents of the item tab of the Properties palette reflect the properties of the currently selected item. Depending on the item selected, options in this tab allow the user to set that items properties such as name, contents, width and height:
  109.  
  110. • push buttons - choose its default item property.
  111. • checkboxes - choose their value property (whether it is turned on or off).
  112. • radio buttons - choose their value property (whether it is turned on or off).
  113. • text field - a password field option is shown.
  114.  
  115. Window -The window tab contains the settings for the main window:
  116.  
  117. • Style - the style of the dialog
  118. • Closeable - whether the window is closeable (only applicable to Standard window and floating palettes)
  119. • Name - the name of the window
  120. • Font - the font of the window
  121. • Size - the size of the font of the window
  122. • Use Bounds - Turn Use bounds on if you want to set the all the bounds of the dialog, or, 
  123.    if you want to set just the width and height of the dialog, which centers the dialog in 
  124.    the middle of the screen, then uncheck this option.
  125.  
  126. ------------------------------------
  127.  
  128. Preferences
  129.  
  130. Editing options
  131.  
  132. • Snap to Grid - Check this option to turn on snap to grid for easier alignment of items. 
  133. • Live Dragging - This option allows live dragging of items in the main window.
  134. • Responsive properties palette - With this checked, selecting an item in the main window 
  135.    automatically reveals the item or window tab in the properties palette, and hilite the name or 
  136.    contents field for ready key input.
  137. • Remember window positions - With this option, positions of all windows are retained.
  138. • Sticky Palettes - Sticky palettes keeps the palettes tidy by keeping them aligned to the main window.
  139. • Non Persitent guides - With this checked, (and guides turned on)
  140.    guides only appear if the item is being dragged.
  141.  
  142. Popups
  143.  
  144. • Script type - With this popup choose the script type you require:
  145. - Auto
  146. - Live
  147. - Ask presents a prompt every time you export a script asking for the script type you require. 
  148.    (See the Dialog Director manual for info on script types.)
  149.  
  150. • Export script
  151. - Show preview - presents a dialog previewing the AppleScript code and options for 
  152.    continuing the export: Copy to clipboard, Open in Editor, and Save as file.
  153. - Copy to Clipboard - copies the resultant script to the clipboard. Save as file asks the 
  154.    user for a destination to save the script file.
  155. - Open in Editor - opens the script in the script editor of choice (see below) and also presents an option.
  156. - Run - to compile and run the script on the fly.
  157.  
  158. • Default Editor lets the user select the editor of his choice for saving and opening scripts. 
  159.  
  160. ------------------------------------
  161.  
  162. Creating a Dialog
  163.  
  164. Drag any of the dialog items off the tools palette onto the main window. When an item is first dragged to the main window, the name or content field (this is dependent on the kind of item) is selected in the properties palette ready for editing. Once placed, these items can be positioned anywhere within the window. If the Responsive properties palette option is turned on (see preferences above) the hiliting and selecting of the name or content fields on the property palette occur as you select each item.
  165.  
  166. Drag Resizing items - While holding down the command key while dragging on an item, the item is resized according to the direction of the drag. Resizing always occurs at the bottom right point of the item, with the top left point of the item fixed in position. By clicking anywhere in the item with the command key down, the cursor jumps to the bottom right point of the item.
  167.  
  168. Live Guides - With guides turned on, guides attached themselves to the edges of the item, and follow that item around when dragged. This allows for easier and more accurate alignment of items. With Non-Persistent guides checked (in preferences) the guides are only visible when an item is actually being dragged, or when the mouse is pressed while the cursor is over that item. 
  169.  
  170. Option click items - Holding down the option key while clicking on some items changes that items state: command clicking a push button toggles its default item property on and off, option clicking checkboxes and radio buttons toggles their value (checked) states. If you command click an icon, it cycles the Note, Alert and Stop icons.
  171.  
  172. Deleting items - To delete an item select Clear from the item menu, or press the delete button on the tool palette. Holding down option while pressing the delete button skips the alert delete dialog.
  173.  
  174. Duplicate - To duplicate an item, press the duplicate button on the tools menu, or selete duplicate from the Item menu. Holding option down in each case raises a duplicate dialog which allows you to set the duplicate offsets. These duplicate values, when entered, are retained thoughout the current Dialog Studio session.
  175.  
  176. Move Again - Move again moves an item in the main window to the same relative offsets as the last item that was moved by dragging. This can be handy if you need to move several items in a window because multiple selections are not available in Dialog Studio. The Move Again command does not consider items moved by nudging or duplicating, or new items dragged onto the main window as the "last moved item"
  177.  
  178. Grouping Radio Buttons - Dialog Studio does not implement radio groups as Dialog Director does. While it is easy to create several radio buttons to form one group in Dialog Studio, creating groups of radio buttons requires a little forethought:
  179.  
  180. 1. Create the radio buttons you require for one group.
  181. 2. Create another item i.e. a push button or static text item.
  182. 3. Create the radio buttons you require for the second group.
  183.  
  184. As long as radio buttons are in sequence with another, they will be grouped as one radio group. If a sequence of radio buttons is broken by another dialog item, then the group is divided into two groups. If you have already laid out your dialog, and then decide that the radio buttons should be split into two radio groups, then select any other item in the main window and bring it to the front (Bring to Front, under the Item menu). Then, perform the same bring to front command on the group of radio buttons that you want grouped as one radio group. This ensures that the sequence of radio buttons is broken by another dialog item.
  185.  
  186. Custom Icons - Up to five custom icons (besides the normal Note, Alert and Stop icons) can be created with Dialog Studio. When you choose a custom icon, a custom icon appears on the main window with the number of that icon. This acts as a placeholder, which is only viewable in Dialog Studio. When you run the script later, the space where this custom icon should appear will be empty. The next step is to run your script throught DS Icon Imbedder (included with Dialog Studio) which imbeds any of a number of provided icons into your script. Instructions for using Icon Imbedder are in the Icon Imbedder folder).
  187.  
  188. ------------------------------------
  189.  
  190. Saving a dialog
  191.  
  192. Dialogs can be saved as native Dialog Studio files for later editing. Remember that when you export a script, it may be advisable to save your dialog as a Dialog Studio file in case you want to change it. (This current version of Dialog Studio does not read dialogs from AppleScripts.)
  193.  
  194. For users who have version 1.0 Dialog Studio dialog files, a supplied file converter is provided to bring them up to date with version 1.1.
  195.  
  196. ------------------------------------
  197.  
  198. Exporting an AppleScript
  199.  
  200. There are four options when it comes to exporting an AppleScript from Dialog Studio:
  201.  
  202. • Copy to clipboard - just puts the script on the clipboard
  203. • Save - saves the script to a file of the type nominated by the "Default Editor" option.
  204. • Preview - this option lets you preview your script before you export it. 
  205.    Here, you might want to make some changes to the script before editing.
  206. • Open in editor - Open in editor lets you export script directly to an new script window in your 
  207.    favorite script editor (choose this in the preferences dialog).
  208. • Run  - When the Open in Editor option is chosen, a "Run" checkbox appears with the option of compiling 
  209.    and running the script as well as opening it.
  210.  
  211. ------------------------------------
  212.  
  213. Other Notes
  214.  
  215. • No closebox or button warning
  216.    Dialog Studio provides built in safeguards against creating scripts that don't contain a window 
  217.    close box or push button. If a window does not contain either of these, you may find yourself 
  218.    having to force quit a script, and risking a crash. 
  219.  
  220. • Enter key on Properties palette
  221.    When editing the content field on the Property palette, the enter key does not type a return. 
  222.    Use the return key on your keyboard instead.
  223.  
  224. • Out of bounds items alert
  225.    If you have created a dialog, then reduced the window size, covering one or more 
  226.    items in the process, an alert will tell you that one or more items were found outside of 
  227.    the window bounds. You will have to go in and delete that item before exporting the script.
  228.  
  229. • Resizing windows
  230.    You can resize windows by dragging only if the window is set to 
  231.    standard or floating palette style. If you want to resize a standard dialog, 
  232.    for example, you can switch to standard window, resize it, then switch back again. 
  233.    (Or use the width and height fields on the property palette.)
  234.  
  235. •  Beep while moving or duplicating
  236.    If a beep sounds while attempting to use the Move Again or Duplicate commands, 
  237.    it may because the move or duplicate distance falls off the edge of the window.
  238.  
  239. • Plain dialog appearance
  240.    The plain dialog window style displays as shadowed dialog in Dialog Studio. 
  241.    However this does export as a plain dialog.
  242.  
  243. ------------------------------------